﻿/*CREATE TRIGGER [dbo].[Ejidos_DeletionTrigger] 
    ON [Ejidos] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Ejidos_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[EjidoGuid] = [Ejidos_Tombstone].[EjidoGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Ejidos_Tombstone] 
    ([EjidoGuid], DeletionDate)
    SELECT [EjidoGuid], GETUTCDATE()
    FROM deleted 
END*/